<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <h1>{{ message }}</h1>
        <!-- v-bind + v-on 实现双向绑定 -->
        <input type="text" :value="message" @input="message = $event.target.value" >
        <hr>
        <h3>双向绑定指令 v-model</h3>
        <input type="text" v-model="message">
    </div>

    <script src="./vue.global.prod.js"></script>
    <script>
        const { createApp } = Vue;
        createApp({
            data:  function () {
                return {
                    message: 'Hello Vue!',
                };
            }
        }).mount('#app');
    </script>
</body>

</html>